package com.zxf.android.mobilesafe.receiver;

import com.zxf.android.mobilesafe.service.TaskWidgetService;

import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;

public class TaskWidgetProvider extends AppWidgetProvider {
	private Intent serviceIntent;


	@Override
	public void onEnabled(Context context) {
		serviceIntent = new Intent(context,TaskWidgetService.class);
		context.startService(serviceIntent);
		super.onEnabled(context);
	}

	@Override
	public void onDisabled(Context context) {
		context.stopService(serviceIntent);
		super.onDisabled(context);
	}
 

	
}
